package org.example.pinda.auth.client.configuration;

import org.example.pinda.auth.client.properties.AuthClientProperties;
import org.example.pinda.auth.client.util.JwtTokenClientUtils;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties(AuthClientProperties.class)
public class AuthClientConfiguration {

    @Bean
    public JwtTokenClientUtils jwtTokenClientUtils(AuthClientProperties authClientProperties) {
        return new JwtTokenClientUtils(authClientProperties);
    }

}
